import Vue from 'vue'
import { Loading } from 'vue-ydui/dist/lib.px/dialog'
// import Badge from 'vux/src/components/badge/index.vue'


Vue.prototype.$dialog = {
  loading: Loading
}

export default {
  name: 'fixBottom',
  props: {
    check: 0,
    goodNum: 0
  },
  components:{
    // Badge
  },
  watch: {
    // 如果路由有变化，会再次执行该方法
    '$route': 'fetchData'
  },
  methods: {
    fetchData () {
      console.log('转换路由')
      // this.$dialog.loading('加载中')
    }
  }
}
